package com.zhxq.ai.domain;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zhxq.common.annotation.Excel;
import com.zhxq.common.core.domain.BaseEntity;

/**
 * 知识库管理对象 knowledge_base
 * 
 * @author zxs
 * @date 2025-06-02
 */
@Data
public class KnowledgeBase extends BaseEntity
{

    /** 主键ID */
    private Long id;

    /** 知识库名称 */
    @Excel(name = "知识库名称")
    private String name;

    /** 知识库文件 */
    @Excel(name = "知识库文件")
    private String fileUrl;

    /** 状态(1: 启用; 0 : 禁用) */
    @Excel(name = "状态(1: 启用; 0 : 禁用)")
    private Long status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setFileUrl(String fileUrl) 
    {
        this.fileUrl = fileUrl;
    }

    public String getFileUrl() 
    {
        return fileUrl;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("fileUrl", getFileUrl())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("remark", getRemark())
            .toString();
    }
}
